# 自定义一个查询车牌号归属地代码
import requests
import json

def query_plate(str_no):
    url = url="https://www.simoniu.com/commons/chinaplate/"+str_no
    rs = requests.get(url)
    # 字符串
    json_str = rs.text
    # 转换成json对象 方便取data数据
    json_obj = json.loads(json_str)
    return json_obj['data']



if __name__ == '__main__':
    print(query_plate("川w00666"))